import axios from '@/plugins/axios'

export const querybanner = () => {
    return axios.request({
        url: "/home/multidata",
        method: 'get'
    })
}

//流行
export const queryShop1 = () => {
    return axios.request({
        url: `/home/news?id=${1}`,
        method: 'get'
    })
}
//新款
export const queryShop2 = () => {
    return axios.request({
        url: `/home/news?id=${2}`,
        method: 'get'
    })
}
//精选
export const queryShop3 = () => {
    return axios.request({
        url: `/home/news?id=${3}`,
        method: 'get'
    })
}

//分类  标题
export const queryTitle = () => {
    return axios.request({
        url: "/category/title",
        method: 'get'
    })
}
//分类  详情
export const queryItem = (maitKey) => {
    return axios.request({
        url: `/category/item?maitKey=${maitKey}`,
        method: 'get'
    })
}